<template>
    <div class="qingwu">
        <div class="admin_table_page_title">
            <a-button @click="$router.back()" class="float_right" icon="arrow-left"
            >返回
            </a-button
            >
            <!-- 反馈信息编辑 -->
            反馈信息查看
        </div>
        <div class="unline underm"></div>
        <div class="admin_form">
            <a-form-model :label-col="{ span: 5 }" :wrapper-col="{ span: 12 }">
                <a-form-model-item label="用户姓名">
                    <a-input v-model="info.userinfo.nickname" disabled></a-input>
                </a-form-model-item>
                <a-form-model-item label="用户头像">
                    <a-img :src="info.userinfo.avatar"></a-img>
                </a-form-model-item>
                <a-form-item label="反馈分类">
                    <a-input v-model="info.feedback_cate.feedback_class_name" disabled></a-input>
                </a-form-item>
                <a-form-model-item label="反馈信息">
                    <a-textarea
                        disabled
                        :auto-size="{ minRows: 2, maxRows: 6 }"
                        v-model="info.feedback_content"
                    />
                </a-form-model-item>
                <!-- <a-form-model-item label="是否启用">
                  <a-radio-group
                    name="is_show"
                    :value="info.is_show"
                    @change="showChange"
                  >
                    <a-radio :value="1">是</a-radio>
                    <a-radio :value="0">否</a-radio>
                  </a-radio-group>
                </a-form-model-item> -->
            </a-form-model>
        </div>
    </div>
</template>

<script>
export default {
    components: {},
    props: {},
    data() {
        return {
            info: {},
            id: 0,
            options: [],
            areas: [],
            property_lists: [],
            params: {
                page: 1,
                per_page: 3000,
                check: 1,
            },
            default_property_id: "请选择家教分类",
            cate_id: "",
        };
    },
    watch: {},
    computed: {},
    methods: {
        // 是否禁用
        showChange(e) {
            console.log(e.target.value);
            this.info.is_show = e.target.value;
        },
        get_info() {
            this.$get(this.$api.feedbackInfo + "/" + this.id).then((res) => {
                this.info = res.data;
            });
        },

        // 获取列表
        onload() {
            // 判断你是否是编辑
            // if (!this.$isEmpty(this.$route.params.id)) {
            this.id = this.$route.params.id;
            this.get_info();
            // }
        },
    },
    created() {
        this.onload();
    },
    mounted() {
    },
};
</script>
<style lang="scss" scoped>
</style>
